<%@ Page Trace="true" %>
<%@ Register TagPrefix="Wrox" Namespace="WroxControls" 
			  Assembly="DictionaryLister" %>

<script runat=server language="C#">


	public string Name
	{

		get { return "Templates Rock"; }
		
	}
	void Page_Init( object sender, EventArgs e )
	{
		
		if ( Page.IsPostBack == false )
		{
			string[] names = new string[3];

			names[0] = "Richard";
			names[1] = "Alex";
			names[2] = "Rob";

			SessionList.DataSource = names;

			Page.DataBind();
		}
	}

</script>


<form runat=server>

<Wrox:ICollectionLister id="SessionList" runat=server>

	<HeadingStyle>
		<h3>ICollection Lister</H3>
	</HeadingStyle>
		
	<ItemStyle>
		<BR><Strong>An item in the collection: <%#Container.DataItem%></Strong></BR>
	</ItemStyle>

</Wrox:ICollectionLister>


<p><asp:button Text="Postback..." runat=server />

</form>